package com.ruoyi.system.basicInformation.service;

import com.ruoyi.system.basicInformation.domain.TJudgeAlarm;
import com.ruoyi.system.basicInformation.vo.TJudgeAlarmVo;
import com.ruoyi.system.basicInformation.bo.TJudgeAlarmQueryBo;
import com.ruoyi.system.basicInformation.bo.TJudgeAlarmAddBo;
import com.ruoyi.system.basicInformation.bo.TJudgeAlarmEditBo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;

/**
 * 研判报警Service接口
 *
 * @author ruoyi
 * @date 2021-06-08
 */
public interface ITJudgeAlarmService extends IService<TJudgeAlarm> {
	/**
	 * 查询单个
	 * @return
	 */
	TJudgeAlarmVo queryById(Long id);

	/**
	 * 查询列表
	 */
	List<TJudgeAlarmVo> queryList(TJudgeAlarmQueryBo bo);

	/**
	 * 根据新增业务对象插入研判报警
	 * @param bo 研判报警新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(TJudgeAlarmAddBo bo);

	/**
	 * 根据编辑业务对象修改研判报警
	 * @param bo 研判报警编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(TJudgeAlarmEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
